package com.cipe.cmrs.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "restricteduielements")
public class RestrictedUiElements implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 3690364176662623375L;

    @Id
    private RestrictedUiElementsId pk;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "roleid", updatable = false, insertable = false)
    private Role role;
    
    @Column(name = "submenuorform")
    private String subMenuOrForm;

    public RestrictedUiElementsId getPk() {
        return pk;
    }

    public void setPk(RestrictedUiElementsId pk) {
        this.pk = pk;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    public String getSubMenuOrForm() {
        return subMenuOrForm;
    }

    public void setSubMenuOrForm(String subMenuOrForm) {
        this.subMenuOrForm = subMenuOrForm;
    }

}
